//
//  RootViewController.m
//  作业-驾校
//
//  Created by qianfeng01 on 15-6-22.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "RootViewController.h"
#import "StudyController.h"
#import "ExamController.h"
#import "ErrorController.h"
#import "ScoreController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden=YES;
}
- (IBAction)study:(id)sender {
    StudyController *controller=[[StudyController alloc] init];
    //[self presentViewController:controller animated:YES completion:nil];
    [self.navigationController pushViewController:controller animated:YES];
}
- (IBAction)exam:(id)sender {
    ExamController *controller=[[ExamController alloc] init];
    //[self presentViewController:controller animated:YES completion:nil];
    [self.navigationController pushViewController:controller animated:YES];
}
- (IBAction)error:(id)sender {
    ErrorController *controller=[[ErrorController alloc] init];
    [self presentViewController:controller animated:YES completion:nil];
}
- (IBAction)score:(id)sender {
    ScoreController *controller=[[ScoreController alloc] init];
    [self presentViewController:controller animated:YES completion:nil];
}

- (IBAction)share:(id)sender {
}
- (IBAction)set:(id)sender {
}
- (IBAction)about:(id)sender {
}

@end
